package cn.uyunsky.platform.entity.impl;

import cn.uyunsky.platform.entity.BaseEntity;

import java.sql.Timestamp;

public class PlUser extends BaseEntity {
	
	private String id;
	//登录名
	private String userid;
	//用户注册填写的真实姓名
	private String username;
	//密码
	private String password;
	//注册日期
	private Timestamp registerDate;
	//用户状态 true 生效; false停用
	private boolean status = true;
	//操作人员
	private String createUserid;
	
	private PlRole role;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	
	public Timestamp getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(Timestamp registerDate) {
		this.registerDate = registerDate;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public String getCreateUserid() {
		return createUserid;
	}

	public void setCreateUserid(String createUserid) {
		this.createUserid = createUserid;
	}
	
	public PlRole getRole() {
		return role;
	}

	public void setRole(PlRole role) {
		this.role = role;
	}

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("PlUser{");
        sb.append("id='").append(id).append('\'');
        sb.append(", userid='").append(userid).append('\'');
        sb.append(", username='").append(username).append('\'');
        sb.append(", password='").append(password).append('\'');
        sb.append(", registerDate=").append(registerDate);
        sb.append(", status=").append(status);
        sb.append(", createUserid='").append(createUserid).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
